package com.gongj.create;

import org.springframework.beans.factory.annotation.Autowired;

public class A {

	private B b;

	private String name;

	public A() {
	}

	//@Autowired
	public A(B b) {
		this.b = b;
	}

	public A(String name) {
		this.name = name;
	}
	@Autowired
	public A(B b, String name) {
		this.b = b;
		this.name = name;
	}

	public B getB() {
		return b;
	}

	public void setB(B b) {
		this.b = b;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "A{" +
				"b=" + b +
				", name='" + name + '\'' +
				'}';
	}
}
